package com.eurasia.assignment.domain.hoj;

import lombok.Getter;

@Getter
public enum HOJJudgementStatus {
    PENDING(99, "Pending"),
    JUDGING(98, "Judging"),
    ACCEPTED(0, "Accepted"),
    WRONG_ANSWER(-1, "Wrong Answer"),
    COMPILE_ERROR(-2, "Compile Error"),
    RUNTIME_ERROR(-3, "Runtime Error"),
    TIME_LIMIT_EXCEEDED(-4, "Time Limit Exceeded"),
    MEMORY_LIMIT_EXCEEDED(-5, "Memory Limit Exceeded"),
    FAILED(-999, "Failed");

    private final int code;
    private final String description;

    HOJJudgementStatus(int code, String description) {
        this.code = code;
        this.description = description;
    }

}